package apple;

/**
 * Created by Tzachi on 06/11/2014.
 */
public class SumWithoutPlus {
    int add(int x, int y) {
        while (y != 0) {
            int carry = x & y;
            x = x ^ y;
            y = carry << 1;
        }
        return x;
    }
}
